<?php
$this->headTitle($this->translate('Control Panel'));
$this->headLink()
    ->appendStylesheet($this->STATIC_URL.'/themes/panel.css')
    ->appendStylesheet($this->STATIC_URL.'/themes/file.css');
$this->headScript()
    ->appendFile($this->STATIC_URL.'/scripts/raysn.js')
    ->appendFile($this->STATIC_URL.'/scripts/frame.js');
?>

<div class="Head">
    <div class="HeadLogo">
        <div class="LogoTxt"></div>
        <div class="LogoImg"></div>
    </div>
    <!--帐户信息-->
    <div class="PassInfo">[ 
        <a href="<?php echo ''?>" title="用户中心"><?php echo $this->user->name?></a>，
        <a href="<?php echo $this->url(array(
            'module' => 'passport',
            'controller' => 'login',
            'action' => 'logout'))?>" target="_top">退出</a> ] 
    </div>
    <!--其它链接-->
    <div class="HelpLink">
        <a href="Panel" name="系统管理">管理</a>
    </div>
    <!--顶部标签-->
    <div class="NavTable">
        <table id="TabHome" style="width: 76px;" class="on">
        <tbody>
        <tr>
            <td class="tLe"></td>
            <td class="bdy"><nobr>面板首页</nobr></td>
            <td class="tRi"></td>
        </tr>
        </tbody>
        </table>
        <div class="TabCloseAll"><a href="#" title="关闭所有"></a></div>
    </div>
    <!--顶部标签-->
</div>

<table class="Main">
<tbody>
<tr>
    <td class="Menu">
        <div class="MenuBtn">
            <a href="<?php echo $this->url(array(
                'module' => 'people',
                'controller' => 'person',
                'action' => 'query'
            ))?>" class="CmBtn" name="户口查询"><b>查询</b></a>
            <a href="<?php echo $this->url(array(
                'module' => 'people',
                'controller' => 'family',
                'action' => 'create'
            ))?>" class="WmBtn" name="户口录入"><b>录入</b></a>
        </div>
        <div class="MenuLnk">
            <div class="Fd Fd0 Sub-tree">
                <?php echo $this->partial('menu.phtml', $this->module);?>
            </div>
            <div class="Fd Fd0 sideL-line">
                <ul class="FdBdy Sb-sfolder">
                <?php foreach($this->linkMenus as $menu) :
                    echo '<li><a href="'. $this->url($menu['url']) .'" name="'. $menu['name'] .'" class="fNm">'. $menu['name'] .'</a></li>';
                endforeach;?>
                </ul>
            </div>
        </div>
    </td>
    <td class="Body" valign="top">
    <div id="DivHome" class="NotRemove" style="overflow:auto;">
        <table class="Wel_Table">
        <tbody>
        <tr>
            <td>
            <div class="Wel_UserInfo">
                <div class="Wel_Title">欢迎光临 <?php echo $this->SITE_NAME?></div>
                <div class="Wel_Inbox">我的积分：<b><?php echo $this->user->state?></b>，上次登录：<?php echo date('Y-m-d H:i', $this->user->login)?></div></div>
            <div class="Wel_SafeInfo"><a href="#" class="SafeHigh">瑞欣网站管理系统 正式版</a><!--a href="" name="系统更新" class="SafeLow">瑞欣网站管理系统 '. RAYSN_VERSION .'正式版</a--></div>
            </td>
        </tr>
        </tbody>
        </table>
        <div class="filelist">
        <div style="float:left;clear:both;">
        <?php foreach($this->iconMenus as $menu) :
            $this->allowed($menu['role'], '<dl><dt><a href="'. $this->url($menu['url']) .'" name="'. $menu['name'] .'" style="background-image:url('. $this->STATIC_URL .'/themes/icons/'. $menu['icon'] .'.png)"></a></dt><dd>'. $menu['name'] .'</dd></dl>');
        endforeach;?>
        </div>
        </div>
        <h5 style="font-size:11px;padding-left:80px;">感谢您的支持，请确保此帐户不用于从事非法行为，否则帐户会立即被停止使用。</h5>
    </div>
    <div id="DivPanel" class="NotRemove" style="overflow:auto;display:none;">
        <div class="Title">管理面板</div>
        <div class="filelist fieldset">
        <?php foreach($this->mainMenus as $menu) :
            echo '<dl><dt><a href="'. $this->url($menu['url']) .'" name="'. $menu['name'] .'" style="background-image:url('. $this->STATIC_URL .'/themes/icons/'. $menu['icon'] .'.png)"></a></dt><dd>'. $menu['name'] .'</dd></dl>';
        endforeach;?>
        </div>
    </div>
    </td>
</tr>
</tbody>
</table>
